package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName sys_msg
 */
@Data
@ApiModel("消息")
public class SysMsg implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @ApiModelProperty("消息类型")
    private Integer msgType;

    @ApiModelProperty("消息标题")
    private String msgTitle;

    /**
     * 
     */
    @ApiModelProperty("消息内容")
    private String msgContent;

    /**
     * 
     */
    @ApiModelProperty("")
    private Integer status;

    /**
     * 
     */
    @ApiModelProperty("消息发布时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date msgPushTime;

    /**
     * 
     */
    @ApiModelProperty("")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date msgCreTime;

    /**
     * 
     */
    @ApiModelProperty("消息已未读标识 0：未读 1：已读")
    private Integer msgFlag;

    @ApiModelProperty("")
    private Integer deptId;

    private static final long serialVersionUID = 1L;


}